import openvino as ov
import torch

print("OpenVino Version: ", ov.get_version())
onnx_file = "v1_onnx.onnx"
ov_model = ov.convert_model(onnx_file,
                            example_input=torch.randn([1, 3, 512, 512], requires_grad=False),
                            input=("input:0", [1, 3, 512, 512]),
                            verbose=True)

ov.save_model(ov_model, "v1_openvino.xml", compress_to_fp16=False)